package com.qijian.maindata.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qijian.maindata.domain.query.StoreLocationNewQuery;
import com.qijian.maindata.domain.StoreLocationNew;
import com.qijian.maindata.domain.vo.StoreLocationNewVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 库位新Mapper接口
 *
 * @author qijian
 * @date 2024-11-28
 */
public interface StoreLocationNewMapper extends BaseMapper<StoreLocationNew> {

    @Select("select count(0) from fm_store_location_new WHERE create_time >= CURRENT_DATE ")
    int countCurrentDateWithDel();

    Page<StoreLocationNewVo> selectPageVo(Page page, @Param(Constants.WRAPPER) QueryWrapper<StoreLocationNewQuery> wrapper);

    List<StoreLocationNewVo> listVo(@Param(Constants.WRAPPER) QueryWrapper<StoreLocationNewQuery> wrapper);

    List<String> getDupFullName(@Param("fullNameList") List<String> fullNameList,@Param("id") Long id);

    StoreLocationNewVo getVoById(@Param("id") Long id);
}
